package com.taxt.http.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author:         wq
 *
 * @CreateDate: 2021/12/14 15:54
 * @Description: 个人信息
 */
public class PersonInfoBean implements Parcelable{
    private String token;
    private PersonInfoDTO personInfo;

    protected PersonInfoBean(Parcel in) {
        token = in.readString();
        personInfo = in.readParcelable(PersonInfoDTO.class.getClassLoader());
    }

    public static final Creator<PersonInfoBean> CREATOR = new Creator<PersonInfoBean>() {
        @Override
        public PersonInfoBean createFromParcel(Parcel in) {
            return new PersonInfoBean(in);
        }

        @Override
        public PersonInfoBean[] newArray(int size) {
            return new PersonInfoBean[size];
        }
    };

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public PersonInfoDTO getPersonInfo() {
        return personInfo;
    }

    public void setPersonInfo(PersonInfoDTO personInfo) {
        this.personInfo = personInfo;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(token);
        parcel.writeParcelable(personInfo, i);
    }

    public static class PersonInfoDTO implements Parcelable {
        private String personId;
        private String phoneNumber;
        private String password;
        private String name;
        private String cardType;
        private String cardId;
        private String taxpayerIdentificationNumber;
        private String birthday;
        private String sex;
        private String nationality;
        private String householdAdressSsq;
        private String householdAdressDetail;
        private String residenceAdressSsq;
        private String residenceAdressDetail;
        private String contactAdressSsq;
        private String contactAdressDetail;
        private String education;
        private String nation;
        private String email;
        private String employmentId;
        private int deleteFlag;

        protected PersonInfoDTO(Parcel in) {
            personId = in.readString();
            phoneNumber = in.readString();
            password = in.readString();
            name = in.readString();
            cardType = in.readString();
            cardId = in.readString();
            taxpayerIdentificationNumber = in.readString();
            birthday = in.readString();
            sex = in.readString();
            nationality = in.readString();
            householdAdressSsq = in.readString();
            householdAdressDetail = in.readString();
            residenceAdressSsq = in.readString();
            residenceAdressDetail = in.readString();
            contactAdressSsq = in.readString();
            contactAdressDetail = in.readString();
            education = in.readString();
            nation = in.readString();
            email = in.readString();
            employmentId = in.readString();
            deleteFlag = in.readInt();
        }

        public static final Creator<PersonInfoDTO> CREATOR = new Creator<PersonInfoDTO>() {
            @Override
            public PersonInfoDTO createFromParcel(Parcel in) {
                return new PersonInfoDTO(in);
            }

            @Override
            public PersonInfoDTO[] newArray(int size) {
                return new PersonInfoDTO[size];
            }
        };

        public String getPersonId() {
            return personId;
        }

        public void setPersonId(String personId) {
            this.personId = personId;
        }

        public String getPhoneNumber() {
            return phoneNumber;
        }

        public void setPhoneNumber(String phoneNumber) {
            this.phoneNumber = phoneNumber;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getCardType() {
            return cardType;
        }

        public void setCardType(String cardType) {
            this.cardType = cardType;
        }

        public String getCardId() {
            return cardId;
        }

        public void setCardId(String cardId) {
            this.cardId = cardId;
        }

        public String getTaxpayerIdentificationNumber() {
            return taxpayerIdentificationNumber;
        }

        public void setTaxpayerIdentificationNumber(String taxpayerIdentificationNumber) {
            this.taxpayerIdentificationNumber = taxpayerIdentificationNumber;
        }

        public String getBirthday() {
            return birthday;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getNationality() {
            return nationality;
        }

        public void setNationality(String nationality) {
            this.nationality = nationality;
        }

        public String getHouseholdAdressSsq() {
            return householdAdressSsq;
        }

        public void setHouseholdAdressSsq(String householdAdressSsq) {
            this.householdAdressSsq = householdAdressSsq;
        }

        public String getHouseholdAdressDetail() {
            return householdAdressDetail;
        }

        public void setHouseholdAdressDetail(String householdAdressDetail) {
            this.householdAdressDetail = householdAdressDetail;
        }

        public String getResidenceAdressSsq() {
            return residenceAdressSsq;
        }

        public void setResidenceAdressSsq(String residenceAdressSsq) {
            this.residenceAdressSsq = residenceAdressSsq;
        }

        public String getResidenceAdressDetail() {
            return residenceAdressDetail;
        }

        public void setResidenceAdressDetail(String residenceAdressDetail) {
            this.residenceAdressDetail = residenceAdressDetail;
        }

        public String getContactAdressSsq() {
            return contactAdressSsq;
        }

        public void setContactAdressSsq(String contactAdressSsq) {
            this.contactAdressSsq = contactAdressSsq;
        }

        public String getContactAdressDetail() {
            return contactAdressDetail;
        }

        public void setContactAdressDetail(String contactAdressDetail) {
            this.contactAdressDetail = contactAdressDetail;
        }

        public String getEducation() {
            return education;
        }

        public void setEducation(String education) {
            this.education = education;
        }

        public String getNation() {
            return nation;
        }

        public void setNation(String nation) {
            this.nation = nation;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public String getEmploymentId() {
            return employmentId;
        }

        public void setEmploymentId(String employmentId) {
            this.employmentId = employmentId;
        }

        public int getDeleteFlag() {
            return deleteFlag;
        }

        public void setDeleteFlag(int deleteFlag) {
            this.deleteFlag = deleteFlag;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeString(personId);
            parcel.writeString(phoneNumber);
            parcel.writeString(password);
            parcel.writeString(name);
            parcel.writeString(cardType);
            parcel.writeString(cardId);
            parcel.writeString(taxpayerIdentificationNumber);
            parcel.writeString(birthday);
            parcel.writeString(sex);
            parcel.writeString(nationality);
            parcel.writeString(householdAdressSsq);
            parcel.writeString(householdAdressDetail);
            parcel.writeString(residenceAdressSsq);
            parcel.writeString(residenceAdressDetail);
            parcel.writeString(contactAdressSsq);
            parcel.writeString(contactAdressDetail);
            parcel.writeString(education);
            parcel.writeString(nation);
            parcel.writeString(email);
            parcel.writeString(employmentId);
            parcel.writeInt(deleteFlag);
        }
    }
}
